package com.ctgu.zmc.stresstest.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author zmc
 * @description 博客实体类
 * @date 2023-05-28 15:50:24
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("blog")
public class BlogEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 博客id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 博客标题
     */
    private String title;

    /**
     * 博客类型
     */
    private String type;

    /**
     * 博客内容
     */
    private String content;

    /**
     * 发布用户昵称
     */
    private String nickname;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}
